package com.zbmy.plugin.im.server.core.back;

import java.util.EventObject;
import java.util.Map;

import com.zbmy.plugin.im.server.core.protocol.MessageHolder;

/**
 * 
 * 消息事件  
 * @ClassName: MessageEvent    
 * @author 杨乐平    
 * @date 2018年5月4日 下午2:27:03    
 * @version  v 1.0
 */
public class MessageEvent extends EventObject {
	private static final long serialVersionUID = 1L;
	
	private Map<String, Object> extraMsgMap;   // 额外信息，例如定位页数据等
	
	private MessageHolder messageHolder;

	public MessageEvent(Object source,MessageHolder messageHolder, Map<String, Object> extraMsgMap) throws Exception {
		super(source);// source—事件源对象—如在界面上发生的点击按钮事件中的按钮
		this.extraMsgMap = extraMsgMap;
		this.messageHolder = messageHolder;
	}

	@SuppressWarnings("deprecation")
	public void process() {
		
	}

	public Map<String, Object> getExtraMsgMap() {
		return extraMsgMap;
	}

	public void setExtraMsgMap(Map<String, Object> extraMsgMap) {
		this.extraMsgMap = extraMsgMap;
	}

	public MessageHolder getMessageHolder() {
		return messageHolder;
	}

	public void setMessageHolder(MessageHolder messageHolder) {
		this.messageHolder = messageHolder;
	}
	
}
